<!--{block return}-->

<div style="background:#ddd;margin-top:16px;margin-bottom:16px;padding:16px;">
  <table cellpadding="8" cellspacing="4">
    <input type="hidden" value="{$_GET['fid']}" id="hzw_fid" />
    <tr>
      <td align="right">{lang csdn123com_kuaibao:csdn123_tishi_tip88}</td>
      <td><input type="text" class="px" style="width: 30em" id="hzw_fromurl" /></td>
    </tr>    
    <tr>
      <td colspan="2"><div style="margin:16px;">
          <input type="button" class="pn pnc" id="hzw_submit" value="{lang csdn123com_kuaibao:csdn123_tishi_tip92}" style="padding: 0 10px;line-height: 21px;" />
        </div></td>
    </tr>
  </table>
</div>
<script src="{$_G['siteurl']}source/plugin/csdn123com_kuaibao/res/jquery.min.js"></script>
<script type="text/javascript">
var csdn123_jQ = jQuery.noConflict(true);
(function ( $, window, undefined ) {
	
	$("#hzw_submit").click(function(){	
		
		var hzw_fromurl=$("#hzw_fromurl").val();
		var hzw_typeid=$("#typeid").val();
		var hzw_fid=$("#hzw_fid").val();
		var hzw_url="hzw_fromurl=" + encodeURIComponent(hzw_fromurl) + "&hzw_typeid=" + hzw_typeid + "&hzw_fid=" + hzw_fid + "&t=" + (new Date()).getTime();
		if(hzw_fromurl=="")
		{			
			$("#hzw_fromurl").focus();
			return false;
		} else {
			$(this).val("{lang csdn123com_kuaibao:csdn123_tishi_tip87}");
			$.get("{$_G['siteurl']}plugin.php?id=csdn123com_kuaibao:one_send&" + hzw_url,function(data){
			
				if(isNaN(data)==false && data>0)
				{
					window.location.href="{$_G['siteurl']}forum.php?mod=viewthread&tid=" + data;
					
				} else if(data=="no1") {
					
					alert("{lang csdn123com_kuaibao:url_err}");
					
				} else {
					
					alert("{lang csdn123com_kuaibao:catch_err}");
				}
				$("#hzw_submit").val("{lang csdn123com_kuaibao:csdn123_tishi_tip92}");
				
			});
		}
		return false;
	});

})( csdn123_jQ, window);
</script>

<!--{/block}-->